package experiment04;

public class experiment04 {
    public static void main(String[] args) {
        int a, b,c,d;
        int gao=4;
        for (a=1;a<=gao;a++){
            //输出空白倒三角
            for (b=gao-1;b>=a;b--){
                System.out.print("   ");
            }
            for (c=1;c<=a;c++){
                System.out.print("*  ");
            }
            for (d=1;d<a;d++){
                System.out.print("*  ");
            }
            System.out.println();
        }
        int e,f,g,h;
        for (e=1;e<=gao;e++){
            for (f=1;f<=e;f++){
                System.out.print("   ");
            }
            for (g=gao-1;g>=e;g--){
                System.out.print("*  ");
            }
            for (h=gao-2;h>=e;h--){
                System.out.print("*  ");
            }
            System.out.println();
        }
    }
}
